<include file="Public:header_login"/>

<div class="loginForm left">
    <form action="{:U('Index/dologin')}" method="post" onsubmit="return dologin();">
        <input type="text" class="lf_input" placeholder="请输入用户名" name="name" id="name" autofocus><br>
        <input type="password" class="lf_input" placeholder="请输入密码" name="pwd" id="pwd"><br>
        普通用户<input type="radio" name="user_group" value="2" class="lf_radio" checked>
        管理员<input type="radio" name="user_group" value="1" class="lf_radio"><br>
        <input type="submit" value="登录" class="lf_btn">
    </form>
</div>
<div class="loginRight right">
    <p>还没有 爱玩视频 账号？</p>
    <a href="{:U('Index/register')}">立即注册</a>
</div>
<script type="text/javascript">
    function dologin() {
        var name = $("#name").val();
        var pwd = $("#pwd").val();
        if (name == "") {
            alert("请输入用户名！");
            return false;
        }
        if (pwd == "") {
            alert("请输入密码！");
            return false;
        }

    }

</script>
<include file="Public:bottom_login"/>